/*
 * serial.h
 *
 * Created: 13.02.2014 17:32:20
 *  Author: Siliconsoul
 */ 


#ifndef SERIAL_H_
#define SERIAL_H_


#include <stdio.h>

#define BAUD 19200
#define MYUBRR (F_CPU / 16 / BAUD - 1)

void usart_init();
char usart_getchar(void);
void usart_putchar(char data);
void usart_pstr (char *s);
unsigned char usart_kbhit(void);
int usart_putchar_printf(char var, FILE *stream);


#endif /* SERIAL_H_ */